<?php
if (isset($_GET["id"])): ?>
<?php
    $urlarr       = $_GET["id"];
    $write        = Mage::getSingleton('core/resource')->getConnection('core_write');
	$rowsocial=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($urlarr);
	$feeds=Mage::getModel('marketplacepartner/feedback')->getTotal($_GET['id']);
?>
<link href="<?php echo $this->getSkinUrl('Customerpartner/css/ptr-profile.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->getSkinUrl('Customerpartner/css/global.css'); ?>" rel="stylesheet" type="text/css" />
<div id="patner-info" class="block block-social-menu">
  <div class="block-title">
    <strong><span><?php echo Mage::helper('marketplacepartner')->__('Store FootPrint') ?> </span></strong>
  </div>
  <div id="info" class="block-content">
    <div class="details">
		<div class="seller section first">
			<div class="content">
				<p class="storename"><a class="store-name" href="<?php echo $this->getUrl()."marketplacepartner/profile?id=".$urlarr ?>"><?php echo $rowsocial['compname'];?></a></p>
				<h4 class="full-view"><a href="<?php echo  Mage::getUrl()."marketplacepartner/collection?id=".$urlarr ?>"><?php echo Mage::helper('marketplacepartner')->__('View Full Collection') ?></a></h4>
			</div>
		</div>
    <div class="wefrom section">
      <h4><?php echo Mage::helper('marketplacepartner')->__('We\'re from') ?></h4>
		<a title="<?php echo Mage::helper('marketplacepartner')->__('View Map') ?>" target="_blank" href="<?php echo  Mage::getUrl()."marketplacepartner/location?q=".$rowsocial['complocality']?>"><img class="piccountry" title="<?php echo Mage::helper('marketplacepartner')->__('View Map') ?>View Map" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'avatar/'.$rowsocial['countrypic']; ?>" /></a>
		<a class="cont-name" title="<?php echo Mage::helper('marketplacepartner')->__('Search') ?>" href="http://www.google.com/search?as_q=<?php echo $rowsocial['complocality']; ?>" target="_blank"><span><?php echo $rowsocial['complocality']; ?></span></a> 
	</div>
  </div>
  <div class="ratings section">
    <h4><?php echo Mage::helper('marketplacepartner')->__('Feedback') ?></h4>
    <div class="content">
      <a class="feedback" href="<?php echo  Mage::getUrl()."marketplacepartner/feedback?id=".$urlarr?>">
        <span title="" class="icon"></span>
        <strong><?php echo $feeds['totalfeed']; ?>%</strong>(<strong><?php echo $feeds['feedcount']; ?></strong>)
      </a>
	</div>
   </div>
  <div class="connect section">
    <h4><?php echo Mage::helper('marketplacepartner')->__('Connect with Us') ?></h4>
    <div class="content">
      <ul>
        <li>
			<span class="icon icon-msg-small"></span>
			<a href="mailto:<?php echo $rowsocial['email']?>"><?php echo Mage::helper('marketplacepartner')->__('Send us a message') ?></a>
		</li>
        <li>
			<span class="icon icon-fb-small"></span>
			<a target="_blank" href="http://www.facebook.com/<?php echo $rowsocial['facebookid']?>"><?php echo Mage::helper('marketplacepartner')->__('Find us on Facebook') ?></a>
		</li>
        <li>
			<span class="icon icon-tw-small"></span>
			<a target="_blank" href="http://twitter.com/<?php echo $rowsocial['twitterid'] ?>"><?php echo Mage::helper('marketplacepartner')->__('Follow us on Twitter') ?></a>
		</li>
	  </ul>
     </div>
    </div>
   </div>
</div>
<?php endif; ?>